package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.SignCalc;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SignCalcMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SignCalc record);

    SignCalc selectByPrimaryKey(Long id);

    List<SignCalc> selectAll();

    int updateByPrimaryKey(SignCalc record);

    SignCalc selectYesterDayByUserId(Long userId);

    SignCalc selectTodaySign(Long userId);

    List<String> selectDay(@Param("userId")Long userId, @Param("sign_data")String sign_data);

    Integer selectSuccRerocdByUserId(Long userId);

    void updateSuccRecord(@Param("userId") Long userId, @Param("succRecord") Integer succRecord);

    List<SignCalc> selectFirst(Long userId);

}